<?php
$uat = require (__DIR__ . '/params-uat.php');
$params = array_merge(
    require (__DIR__ . '/../../../common/config/params.php'),
    require (__DIR__ . '/../../../common/config/params-uat.php'),
    require (__DIR__ . '/params.php'),
    $uat
);

$config = [
    'components' => [
        'request' => [
            // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
            'cookieValidationKey' => 'LMRTOxeaphTCWNxaSnMsD_vqQzpYt4o_',
        ],

        //@todo srq
//        'db' => [
//            'class' => 'yii\db\Connection',
//            'dsn' => 'mysql:host=172.16.25.52;dbname=unit_qrcode;port=3306',
//            'username' => 'paidan_user',
//            'password' => 'aaA5y6C9vL',
//            'charset' => 'utf8',
//        ]
    ],
    'params' => $params,
];

if (!YII_ENV_TEST) {
//     configuration adjustments for 'dev' environment
     $config['bootstrap'][] = 'debug';
     $config['modules']['debug'] = 'yii\debug\Module';

     $config['bootstrap'][] = 'gii';
     $config['modules']['gii'] = 'yii\gii\Module';
}

return $config;
